
package dieci.hibernate;

import dieci.database.PersistentObject;
import dieci.system.RawMaterialProduct;

/**
 *
 * @author DuckSys
 */
public class HibRawMaterialProduct implements PersistentObject{

    private int rawMaterialId;
    private long productId;
    private float amount;

    public HibRawMaterialProduct()
    {
    }

    
    public HibRawMaterialProduct(RawMaterialProduct rawMaterialProduct)
    {
        this.productId = rawMaterialProduct.getProduct().getProductId();
        this.rawMaterialId = rawMaterialProduct.getRawMaterial().getRawMaterialId();
        this.amount = rawMaterialProduct.getAmount();
    }

    
    public int getRawMaterialId()
    {
        return rawMaterialId;
    }

    public void setRawMaterialId(int rawMaterialId)
    {
        this.rawMaterialId = rawMaterialId;
    }

    public long getProductId()
    {
        return productId;
    }

    public void setProductId(long productId)
    {
        this.productId = productId;
    }

    public float getAmount()
    {
        return amount;
    }

    public void setAmount(float amount)
    {
        this.amount = amount;
    }
    
    

}
